package org.scboy.dbms.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import org.scboy.dbms.api.AreaManager;
import org.scboy.dbms.cache.AreaCodeCache;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class AreaManagerImpl implements AreaManager {

	@Autowired
	AreaCodeCache cache;
	
	@Override
	public String getName(String id) {
		return cache.getName(id);
	}

	@Override
	public String getAddress(String id) {
		return cache.getAddress(id);
	}

}
